package com.igeek.base.ch0712.Demo3;

/**
 * @Description TODO
 * @Author chenmin
 * @Date 2024/7/14 13:30
 */
public abstract class Shape implements Comparable<Shape>{
    public abstract double getArea();
    public abstract double getSize();

    @Override
    public int compareTo(Shape o) {
        return Double.compare(this.getArea(), o.getArea());
    }
}
